export const UPDATE_LIST = 'UPDATE_LIST'
export function reducers (state, actions) {
  if (!state) {
    state = {
      list: [],
      songer: '李荣浩'
    }
  }
  const { type, payload } = actions
  switch (type) {
    case UPDATE_LIST:
      return {
        ...state,
        list: payload
      }
    default:
    return state
  }
}